package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:张熳
 * Date:2025-08-28
 * Time:17:30
 */
//接口的使用
//键盘类：实现USB接口，并具备输入功能

public class KeyBoard implements USB{
    //实现USB接口
    @Override
    public void openDevice() {
        System.out.println("打开键盘⌨");
    }

    @Override
    public void closeDevice() {
        System.out.println("关闭键盘⌨");
    }

    //具备输入功能
    public void input() {
        System.out.println("键盘打字✨");
    }
}
